package com.cn.dream_order_server.service;



import com.cn.dream_order_server.pojo.OrderShopping;

import java.util.List;
import java.util.Map;

public interface OrderCartService {

    //获取用户的购物车信息和总价
    Map<String,Object> getOrederShoppingListByUserId(String userId);

    //根据购物车id修改数量(redis修改)
    void updateOrderShoppingByShoppingId(String shoppingId,Integer num);

    //将修改信息跟新到数据库
    void updateOrderCartTable();

    //根据购物车id删除购物车信息
    Integer deleteOrderShoppingByShoppingId(String shoppingId);

    //根据商品id添加购物车信息
    Integer saveOrderShoppingByCommodity_id(String commodity_id,Integer shopping_num,Long price,String userId);

    //根据购物车id修改购物车信息
    Integer updateOrderCartByShoppingId(OrderShopping orderShopping);

    //根据购物车id数组获取购物车集合
    List<OrderShopping> selectOrderShoppingListInOrderShoppingId(String[] shoppingIds);
}
